<?php
	
class Table_Comporte extends Zend_Db_Table_Abstract
{
	protected $_name    = 'comporte';
    protected $_primary = array('ARTICLE_NUMERO','VIP_NUMERO','PHOTO_NUMERO');
    protected $_sequence = false; //la table a un autoincrément
    
	public function insertArticle($numvip,$numarticle, $numphoto){
		$data = array('ARTICLE_NUMERO'=> $numarticle,
					  'VIP_NUMERO'=> $numvip,
					  'PHOTO_NUMERO'=>$numphoto);
		return $this->insert($data);
	}
	
	public function deleteArticle($numart){
		$this->delete('ARTICLE_NUMERO = '.$numart);
	}
	
	public function deleteVip($numvip){
		$this->delete('VIP_NUMERO = '.$numvip);
	}
}
?>